<input type="hidden" name="menu_item_srl" value="{$item_info->menu_item_srl}" />
<input type="hidden" name="parent_srl" value="{$item_info->parent_srl}" />
<input type="hidden" name="normal_btn" value="{$item_info->normal_btn}" />
<input type="hidden" name="hover_btn" value="{$item_info->hover_btn}" />
<input type="hidden" name="active_btn" value="{$item_info->active_btn}" />

<div class="layer" style="display:block;">

    <h4 class="xeAdmin">{$lang->menu}</h4>
    <button class="xButton" type="button" onclick="hideCategoryInfo();return false" ><span>{$lang->cmd_close}</span></button>

    <div class="layerBody">

        <table cellspacing="0" class="rowTable">
        <!--@if($item_info->parent_menu_name)-->
        <tr class="row{$cycle_idx}">
            <th scope="row"><div>{$lang->parent_menu_name}</div></th>
            <td>{$item_info->parent_menu_name}</td>
        </tr>
        <!--@end-->

        <tr>
            <th scope="row"><div>{$lang->menu_name}</div></th>
            <td>
                <input type="text" name="menu_name" id="menu_name" value="{$item_info->name}" class="inputTypeText w300"/>
                <a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','menu_name')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a>
            </td>
        </tr>
        <tr>
            <th scope="row"><div>{$lang->menu_url}</div></th>
            <td>
                <input type="text" name="menu_url" value="{$item_info->url}" class="inputTypeText" />
                <a href="{getUrl('module','menu','act','dispMenuAdminMidList')}" onclick="popopen(this.href);return false;" class="button black"><span>{$lang->cmd_search_mid}</span> </a>
                <p class="clear">{$lang->about_menu_url}</p>
            </td>
        </tr>
        <tr>
            <th scope="row"><div>{$lang->menu_open_window}</div></th>
            <td>
                <input type="checkbox" name="menu_open_window" value="Y" <!--@if($item_info->open_window=="Y")-->checked="checked"<!--@end--> />
                <p>{$lang->about_menu_open_window}</p>
            </td>
        </tr>
        <tr>
            <th scope="row"><div>{$lang->menu_expand}</div></th>
            <td>
                <input type="checkbox" name="menu_expand" value="Y" <!--@if($item_info->expand=="Y")-->checked="checked"<!--@end--> />
                <p>{$lang->about_menu_expand}</p>
            </td>
        </tr>
        <tr>
            <th scope="row"><div>{$lang->menu_img_btn}</div></th>
            <td><p>{$lang->about_menu_img_btn}</p></td>
        </tr>
        <tr>
            <th scope="row"><div>{$lang->menu_normal_btn}</div></th>
            <td>
                <div id="menu_normal_btn_zone" <!--@if(!$item_info->normal_btn)-->style="display:none;"<!--@end-->>
                    <img src="{$item_info->normal_btn}" alt="" id="menu_normal_btn_img" /><br />
                    <a href="#" onclick="doDeleteButton('menu_normal_btn');return false;" class="button"><span>{$lang->cmd_delete}</span></a>
                </div>
                <input type="file" name="menu_normal_btn" value="" class="inputTypeText" onchange="doMenuUploadButton(this); return false;"/>
            </td>
        </tr>
        <tr>
            <th scope="row"><div>{$lang->menu_hover_btn}</div></th>
            <td>
                <div id="menu_hover_btn_zone") <!--@if(!$item_info->hover_btn)-->style="display:none;"<!--@end-->>
                    <img src="{$item_info->hover_btn}" alt="" id="menu_hover_btn_img" /><br />
                    <a href="#" onclick="doDeleteButton('menu_hover_btn');return false;" class="button"><span>{$lang->cmd_delete}</span></a>
                </div>
                <input type="file" name="menu_hover_btn" value="" class="inputTypeText" onchange="doMenuUploadButton(this); return false;"/>
            </td>
        </tr>
        <tr>
            <th scope="row"><div>{$lang->menu_active_btn}</div></th>
            <td>
                <div id="menu_active_btn_zone" <!--@if(!$item_info->active_btn)-->style="display:none;"<!--@end-->>
                    <img src="{$item_info->active_btn}" alt="" id="menu_active_btn_img" /><br />
                    <a href="#" onclick="doDeleteButton('menu_active_btn');return false;" class="button"><span>{$lang->cmd_delete}</span></a>
                </div>
                <input type="file" name="menu_active_btn" value="" class="inputTypeText" onchange="doMenuUploadButton(this); return false;"/>
            </td>
        </tr>
        <tr>
            <th scope="row"><div>{$lang->menu_group_srls}</div></th>
            <td>
                <!--@foreach($group_list as $key=>$val)-->
                <input type="checkbox" name="group_srls" value="{$key}" id="group_{$key}" <!--@if(is_array($item_info->group_srls)&&in_array($key, $item_info->group_srls))-->checked="checked"<!--@end-->/>
                <label for="group_{$key}">{$val->title}</label>
                <!--@end-->
                <p>{$lang->about_menu_group_srls}</p>
            </td>
        </tr>
        <tr>
            <th scope="row" colspan="3" class="button"><div>
                <span class="button black strong"><input type="submit" value="{$lang->cmd_save}" /></span>
            </div></th>
        </tr>
        </table>

        <script type="text/javascript">

        (function($){
        $("[name^=menu_name_]").bind("blur",function(e){
            if($("[name=ck_"+$(this).attr("name")+"]:checked").size()>0){
                $("[name^=ck_menu_name_]:checked").each(function(i){
                    $("[name="+$(this).attr("name").substring(3)+"]").val(e.target.value);
                });
            }
        });

        $('input#menu_name').focus();
        
        })(jQuery);
        </script>

    </div>
</div>
